// 动态路由
export const dynamicRoutes = [
  {
    path: '/',
    name: '/',
    component: () => import('../layout/index.vue'),
    redirect: '/home',
    meta: {
      isKeepAlive: true,
      title: '首页',
    },
    children: [],
  },
]

// 定义404,401等路由
export const notFoundAndNoPower = [
  {
    path: '/:path(.*)*',
    name: 'notFound',
    component: () => import('../view/error/404.vue'),
    meta: {
      title: '404',
      isHide: true,
    },
  },
  {
    path: '/401',
    name: 'noPower',
    component: () => import('../view/error/401.vue'),
    meta: {
      title: '404',
      isHide: true,
    },
  },
]

/**
 * 定义静态路由（默认路由）
 */
export const staticRoutes = [
  {
    path: '/login',
    name: 'router.login',
    component: () => import('../view/login/index.vue'),
    meta: {
      title: 'router.login',
    },
  },
]
